package com.eastfair.venueservice.dto;

import com.eastfair.venueservice.entity.ServicePriceListDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 实体类
 * 服务价目信息表
 * </p>
 *
 * @author linan
 * @since 2022-07-21
 */
@Data
@ApiModel(value = "ServicePriceListItemUpdateDTO", description = "服务价目信息表")
public class ServicePriceListItemDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "主键不能为空",groups = {Update.class})
    private Long id;
    /**
     * 服务项id
     */
    @ApiModelProperty(value = "服务项id")
    @NotNull(message = "服务项ID不能为空",groups = {Save.class})
    private Long serviceItemId;
    /**
     * 价目id
     */
    @ApiModelProperty(value = "价目id")
    private Long priceListId;
    /**
     * 是否对主场开放：1是；0否
     */
    @ApiModelProperty(value = "是否对主场开放：1是；0否")
    private Integer isForHome;
    /**
     * 是否对主运开放：1是；0否
     */
    @ApiModelProperty(value = "是否对主运开放：1是；0否")
    private Integer isForTransport;
    /**
     * 是否对主办开放：1是；0否
     */
    @ApiModelProperty(value = "是否对主办开放：1是；0否")
    private Integer isForSponsor;
    /**
     * 价目规格明细
     */
    @ApiModelProperty(value = "价目规格明细")
    private List<ServicePriceListDetailDTO> servicePriceListDetailList;



    public interface Save{};

    public interface Update{};
}
